package com.huike.web.controller.system;

import com.huike.clues.domain.SysDictType;
import com.huike.clues.domain.dto.SysDictTypeQueryDTO;
import com.huike.clues.domain.vo.SysDictTypeVo;
import com.huike.clues.service.ISysDictTypeService;
import com.huike.common.core.domain.entity.SysDictTypeDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/system/dict/type")
public class SysDictTypeController {
    @Autowired
    private ISysDictTypeService sysDictTypeService;

    /**
     * 字典类型分页条件查询
     * @param dto
     * @return
     */
    @GetMapping("/list")
    public SysDictTypeVo page( SysDictTypeQueryDTO dto){
        log.info("字典类型分页条件查询{}",dto);
        return sysDictTypeService.pageQuery(dto);
    }
}
